<template>
	<view class="yang_zhi_dang_an_box" :style="{height: windowHeight + 'px'}">
		<!-- 标题 -->
		<view class="title_box pv_20 text_center">
			<text class="title vertical_text mn fs_36_i mainColor fw_bold" @click="clickTitle()">ᠲᠡᠵᠢᠭᠡᠨ ᠦᠷᠡᠵᠢᠭᠦᠯᠬᠦ ᠳᠠᠩᠰᠠ ᠡᠪᠬᠡᠮᠡᠯ</text>
			
			<view class="add_btn">
				<i class="iconfont icon-tianjiatupianlimianjiahao mainColor fs_40_i fw_bold" @click="addYangZhi(activeTabName)"></i>
			</view>
		</view>
		
		<!-- 内容 -->
		<view class="content_box">
			<!-- search -->
			<view class="input_box">
				<view class="search_input">
					<editor
						id="editor_search" 
						class="editor_search vertical_text pt_5 pl_4 w_60 bgc_eee border_radius_5"
						@ready="onEditorSearchReady()" 
						@input="getEditorSearch"
					>
					</editor>
				</view>

				<!-- 搜索 按钮 -->
				<view class="search_btn">
					<i class="iconfont icon-sousuo color_fff fs_48_i" @click="goToSearch()"></i>
				</view>
			</view>
			
			<!-- 饲料管理 、 批量管理 -->
			<view class="si_liao_pi_liang_box" v-if="isShowPiLiang">
				<!-- 饲料 -->
				<view class="si_liao_box">
					<view class="si_liao" @click="handleClickSiLiaoGuanLi()">
						<view class="si_liao_icon">
							<i class="iconfont icon-siliao color_ffa500 fs_48_i" @click=""></i>
						</view>
						
						<view class="si_liao_text">
							<text class="vertical_text mn fs_36">ᠪᠣᠷᠳᠤᠭᠠᠨ᠎ᠤ ᠬᠠᠮᠢᠶᠠᠷᠤᠯᠲᠠ</text>
						</view>
					</view>
				</view>
				
				<!-- 批量 -->
				<view class="pi_liang_box">
					<view class="pi_liang" @click="handleClickPiLiangGuanLi()">
						<view class="pi_liang_icon">
							<i class="iconfont icon-piliangguanli color_ff3c20 fs_48_i"></i>
						</view>
						
						<view class="pi_liang_text">
							<text class="vertical_text mn fs_36">ᠪᠥᠭᠡᠮ᠎ᠢᠶᠡᠷ ᠬᠠᠮᠢᠶᠠᠷᠬᠤ</text>
						</view>
					</view>
				</view>
			</view>
			
			<!-- tab 栏 -->
			<view class="num_box w_full" v-if="isShowPiLiang">
				<view class="num_list">
					<view class="num_item">
						<view class="num">
							214
						</view>
						<view class="name text-center">
							<text class="vertical_text mn fs_40">ᠪᠦᠭᠦᠳᠡ</text> 
						</view>
					</view>
					
					<view class="num_item">
						<view class="num">
							43
						</view>
						<view class="name text-center">
							<text class="vertical_text mn fs_40">ᠬᠤᠳᠠᠯᠳᠤᠬᠤ</text> 
						</view>
					</view>
					
					<view class="num_item">
						<view class="num">
							104
						</view>
						<view class="name text-center">
							<text class="vertical_text mn fs_40">ᠦᠨᠢᠶ᠎ᠡ</text> 
						</view>
					</view>
					
					<view class="num_item">
						<view class="num">
							67
						</view>
						<view class="name text-center">
							<text class="vertical_text mn fs_40">ᠲᠤᠭᠤᠯ</text> 
						</view>
					</view>
				</view>
			</view>
			
			<!-- tab 栏下方div -->
			<view class="classify__list_box" :class="[isShowPiLiang ? 'height_160' : 'height_40' ]">
				<!-- 分类筛选 -->
				<view class="classify_box" v-if="isShowPiLiang">
					<view class="classify_item">
						<view class="name text-center">
							<text class="vertical_text mn fs_40">ᠪᠠᠢᠳᠠᠯ </text> 
						</view>
						<view class="select_icon_box">
							<i class="iconfont icon-xiala color_ccc fs_20_i"></i>
						</view>
					</view>
					
					<view class="classify_item">
						<view class="name text-center">
							<text class="vertical_text mn fs_40">ᠬᠠᠱᠢᠶ᠎ᠠ </text> 
						</view>
						<view class="select_icon_box">
							<i class="iconfont icon-xiala color_ccc fs_20_i"></i>
						</view>
					</view> 
					
					<view class="classify_item">
						<view class="name text-center">
							<text class="vertical_text mn fs_40">ᠲᠥᠷᠦᠯ </text> 
						</view>
						<view class="select_icon_box">
							<i class="iconfont icon-xiala color_ccc fs_20_i"></i>
						</view>
					</view>
					
					<view class="classify_item">
						<view class="name text-center">
							<text class="vertical_text mn fs_40">ᠵᠢᠭᠰᠠᠭᠠᠬᠤ </text> 
						</view>
						<view class="select_icon_box">
							<i class="iconfont icon-xiala color_ccc fs_20_i"></i>
						</view>
					</view>
				</view>
			
				<!-- 养殖 list -->
				<view class="yang_zhi_list">
					<scroll-view class="full" scroll-y="true" lower-threshold="50" @scrolltolower="handlePagenation()">
						<view 
							class="yang_zhi_item" 
							:class="{ 'active_yang_zhi_item' : activeYangZhiItemIndex == index }" 
							v-for="(item, index) in yangZhiList" :key="index" 
							@click="handleClickItem(item.id, index)"
						>
							<view class="img_box">
								<image :src="item.avatar" mode=""></image>
							</view>
							
							<view class="yang_zhi_content flex_row_around">
								<view class="flex_item bgc_1c9aa0 border_radius_10 text_center p_6 border_box">
									<text class="vertical_text mn color_fff fs_36">ᠱᠢᠮᠧᠨ᠋ᠳᠡᠷ</text>
								</view>
								<view class="flex_item bgc_eee border_radius_10 text_center p_6 border_box">
									<text class="vertical_text mn color_000 fs_36">ᠰᠠᠭᠤᠷᠢ ᠦᠨᠢᠶ᠎ᠡ</text>
								</view>
								<view class="flex_item bgc_eee border_radius_10 text_center p_6 border_box">
									<text class="vertical_text mn color_000 fs_36">ᠱᠢᠷ᠎ᠠ ᠴᠠᠭᠠᠨ ᠥᠩᠭᠡ</text>
								</view>
								<view class="flex_item bgc_eee border_radius_10 text_center p_6 border_box">
									<text class="vertical_text mn color_000 fs_36">ᠦᠨᠢᠶ᠎ᠡ</text>
								</view>
								<view class="flex_item bgc_eee border_radius_10 text_center p_6 border_box">
									<text class="vertical_text mn color_000 fs_36">ᠡᠪᠡᠷ᠎ᠲᠡᠢ</text>
								</view> 
								<view class="flex_item bgc_eee border_radius_10 text_center p_6 border_box">
									<text class="vertical_text mn color_000 fs_36">12 ᠰᠠᠷ᠎ᠠ</text>
								</view> 
							</view>
							
							<view class="num_box flex_row_between">
								<view class="num">
									{{ item.num }}
								</view>

								<view class="percent fs_26 mainColor mr_20">
									<i class="dang_an_icon iconfont icon-JDgerendanganwanshan mainColor fs_50_i"></i>
									<text class="fs_30_i">{{ item.percent }}</text>
								</view>
							</view>
						</view>	
					</scroll-view>
				</view>
			</view>

			<view class="bottom_box flex_row_between" v-if="!isShowPiLiang">
				<view class="select_all">
					<view class="select_icon">
						<i class="iconfont icon-choose mainColor fs_48_i" v-if="!isSelectAll" @click="isSelectAll = true"></i>
						<i class="iconfont icon-quanxuan-xuanzhong mainColor fs_48_i" v-else @click="isSelectAll = false"></i>
					</view>
	
					<view class="select_text">
						<text class="vertical_text mn fs_40">ᠪᠦᠬᠦᠨ᠎ᠢ ᠰᠣᠩᠭᠤᠬᠤ</text>
					</view>
				</view>
				
				<view class="select_some">
					<view class="select_num">
						<text class="fs_40 color_ccc">21</text>
					</view>
					<view class="select_text">
						<text class="vertical_text mn fs_40">ᠰᠣᠩᠭᠤᠪᠠ</text>
					</view>
				</view>
				
				<view class="delete_box">
					<view class="btn">
						<text class="vertical_text mn fs_40">ᠬᠠᠰᠤᠬᠤ</text>
					</view>
				</view>
				
				<view class="btn_box" @click="showPiLiangDialog()">
					<view class="btn">
						<text class="vertical_text mn fs_40">ᠪᠥᠭᠡᠮ᠎ᠢᠶᠡᠷ ᠲᠡᠵᠢᠭᠡᠨ ᠦᠷᠡᠵᠢᠭᠦᠯᠬᠦ</text>
				</view>
			</view>
		</view>
		
		<!-- 批量养殖 dialog -->
		<view class="pi_liang_yang_zhi_dialog full bgc_ccc" v-if="isShowPiLiangSelectDialog">
			<view class="select_box w_full h_50_p bgc_fff">
				<view class="hide_btn_box">
					<i class="iconfont icon-yuyinguanbi color_ccc fs_48_i" @click="clickHideIcon()"></i>
				</view>
				
				<view class="title_select_item_box flex_row_around">
					<view class="width_20_p pl_30 border_box">
						<text class="vertical_text mn fs_40 color_ccc">ᠨᠢᠭᠡᠨᠲᠡ 34 ᠎ᠶᠢ ᠰᠣᠩᠭᠤᠪᠠ</text>
					</view>
					
					<view class="select_item flex_column_between">
						<text class="vertical_text mn fs_40">ᠪᠥᠭᠡᠮ᠎ᠢᠶᠡᠷ ᠦᠰᠦᠨ ᠪᠣᠢᠵᠢᠬᠤ</text>
						<i class="iconfont icon-choose mainColor fs_48_i" v-if="!select1" @click="clickSelectIcon('select1', true)"></i>
						<i class="iconfont icon-quanxuan-xuanzhong mainColor fs_48_i" v-else @click="clickSelectIcon('select1', false)"></i>
					</view>
					
					<view class="select_item flex_column_between">
						<text class="vertical_text mn fs_40">ᠪᠥᠭᠡᠮ ᠨᠠᠢᠷᠠᠯᠭ᠎ᠠ</text>
						<i class="iconfont icon-choose mainColor fs_48_i" v-if="!select2" @click="clickSelectIcon('select2', true)"></i>
						<i class="iconfont icon-quanxuan-xuanzhong mainColor fs_48_i" v-else @click="clickSelectIcon('select2', false)"></i>
					</view>
					
					<view class="select_item flex_column_between">
						<text class="vertical_text mn fs_40">ᠪᠥᠭᠡᠮ᠎ᠢᠶᠡᠷ ᠬᠢᠵᠢᠭ ᠰᠡᠷᠭᠡᠢᠯᠡᠬᠦ</text>
						<i class="iconfont icon-choose mainColor fs_48_i" v-if="!select3" @click="clickSelectIcon('select3', true)"></i>
						<i class="iconfont icon-quanxuan-xuanzhong mainColor fs_48_i" v-else @click="clickSelectIcon('select3', false)"></i>
					</view>
					
					<view class="select_item flex_column_between">
						<text class="vertical_text mn fs_40">ᠪᠥᠭᠡᠮ᠎ᠢᠶᠡᠷ ᠡᠮᠴᠢᠯᠡᠬᠦ</text>
						<i class="iconfont icon-choose mainColor fs_48_i" v-if="!select4" @click="clickSelectIcon('select4', true)"></i>
						<i class="iconfont icon-quanxuan-xuanzhong mainColor fs_48_i" v-else @click="clickSelectIcon('select4', false)"></i>
					</view>
				</view>
			</view>
		</view>
		
	</view>
	</view>
</template>

<script>
	import getSystemInfo from '../../mixins/basic.js'
	import NET from '@/utils/request.js'
	import API from '@/config/api.js'
	
	export default {
		mixins: [getSystemInfo],
		data() {
			return {
				isShowPiLiang: true,
				isShowPiLiangSelectDialog: false,
				activeYangZhiItemIndex: null,
				searchVal: '',
				activeTabName: 0,
				activeTabId: '',
				animalCategoryList: [],
				
				yangZhiList: [
					{
						avatar: require('@/static/img/cattle_2.jpg'),
						num: '21324353',
						percent: '80%'
					},
					{
						avatar: require('@/static/img/cattle.jpg'),
						num: '984832472',
						percent: '90%'
					},
					{
						avatar: require('@/static/img/cattle_2.jpg'),
						num: '1343583885',
						percent: '95%'
					},
					{
						avatar: require('@/static/img/cattle.jpg'),
						num: '986532424',
						percent: '70%'
					},
				],
				yangZhiTotal: 0,
				
				isSelectAll: false,
				
				pagenation: {
					current: 1,
					size: 10
				},
				isPagenatiion: false,
				
				select1: false,
				select2: false,
				select3: false,
				select4: false,
			}
		},
		onLoad() {
			// 获取设备高度
			this.getSystemHeight()
		},
		onShow() {
			
		},
		mounted() {
			// this.getAnimalCategoryList()
			
			setTimeout(() => {
				if (!this.yangZhiList.length) {
					this.pagenation.current = 1
					// this.getYangZhiListByAnimalId(this.activeTabId)
				}
			}, 300)
		},
		methods: {
			// 搜索
			onEditorSearchReady(){
				uni.createSelectorQuery().select('#editor_search').context((res) => {   
					this.searchVal = res.context    
					// this.searchVal.setContents({    
					// 	html:this.user.userName    
					// })    
				}).exec()    
			},
			
			// 点击 title 隐藏 批量选择
			clickTitle() {
				this.isShowPiLiang = true
			},
			
			// 修改后的 searchVal
			getEditorSearch(e){
				this.searchVal = (e.detail.text).substring(0, e.detail.text.length - 1);
			},
			
			// 点击饲料管理
			handleClickSiLiaoGuanLi() {
				uni.navigateTo({
					url: '/subcontract/breed-archive/si-liao-guan-li',
				})
			},
			
			// 点击批量管理
			handleClickPiLiangGuanLi() {
				this.isShowPiLiang = false
			}, 
			
			// 点击批量养殖按钮
			showPiLiangDialog() {
				this.isShowPiLiangSelectDialog = true
			},
			
			// 隐藏批量养殖
			clickHideIcon() {
				this.isShowPiLiangSelectDialog = false
			},
			
			// 改变选择 icon
			clickSelectIcon(val1, val2) {
				if (val1 == 'select1') {
					this.select1 = val2
				} else if (val1 == 'select2') {
					this.select2 = val2
				} else if (val1 == 'select3') {
					this.select3 = val2
				} else {
					this.select4 = val2
				}
			},
			
			// 获取牲畜分类
			getAnimalCategoryList() {
				NET.request(API.getAnimalCategory, 'GET')
				.then(res => {
					// console.log('获取牲畜列表 : ', res)
					if (res.code == 200) {
						this.animalCategoryList = res.data
						this.activeTabId = res.data[0].animalId
					}
				})
				.catch(err => {
					console.error('获取牲畜列表失败', err)
				})
			},
			
			// 点击 animalTabName
			handleClickAnimalTab(index, id) {
				this.activeTabName = index
				this.activeTabId = id
				
				// 清空当前养殖档案
				this.yangZhiList = []
				
				// 获取牲畜分类下的养殖档案
				this.getYangZhiListByAnimalId(id)
			},
			
			// 获取牲畜分类下的养殖档案
			getYangZhiListByAnimalId(id) {
				let params = { 
					animalId: this.activeTabId || id,
					current: this.pagenation.current,
					size: this.pagenation.size
				}
				
				NET.request(API.getYangZhiIndex, params, 'GET')
				.then(res => {
					if (res.code == 200) {
						this.yangZhiList = [...this.yangZhiList, ...res.data.list]
						this.yangZhiTotal = res.data.totalCount
					}
				})
				.catch(err => {
					console.error('获取养殖档案首页失败', err)
				})
			},
			
			// 养殖档案分页
			handlePagenation() {
				if (!this.isPagenation) {
					if (this.yangZhiList.length < this.yangZhiTotal) {
						this.isPagenation = true
						this.yangZhiList.current ++
						this.getYangZhiListByAnimalId(id)
						setTimeout(() => {this.isPagenation = false}, 500)
					} else {
						uni.showToast({
							title: '数据到底了！', icon: 'none'
						})
					}
				} else {
					return false
				}
			},
			
			// 点击 item 查看养殖档案详情
			handleClickItem(id, index) {
				this.activeYangZhiItemIndex = index
				uni.navigateTo({
					url: `/subcontract/breed-archive/yang-zhi-detail?id=${id}`,
				})
			},
			
			// 点击 添加图标 跳转到 添加养殖档案页面
			addYangZhi(val) {
				uni.navigateTo({
					url: `/subcontract/yang-zhi-dang-an/add-yang-zhi?name=${val}`,
				})
			},
			
			
		}
	}
</script>

<style lang="less" scoped>
	.active_tab { border-bottom: 8rpx solid #ffa500; }
	.active_yang_zhi_item { border: 1px solid #1c9aa0; }
	.height_40 { height: calc(100% - 140rpx); }
	.height_160 { height: calc(100% - 260rpx); }
	
	.yang_zhi_dang_an_box {
		width: 100%;
		// border: 1px solid #f00;
		box-sizing: border-box;
		position: relative;
		
		// 标题
		.title_box {
			width: 80rpx;
			height: 100%;
			// background-color: #1c9aa0;
			box-sizing: border-box;
			position: relative;
			float: left;
			
			.title {}
			.add_btn {
				width: 100%;
				height: 50rpx;
				position: absolute;
				bottom: 30rpx;
				
			}
		}
	
		// 内容
		.content_box {
			width: calc(100% - 80rpx);
			height: 100%;
			float: left;
			padding: 10rpx 0;
			box-sizing: border-box;
			
			.input_box {
				width: 60rpx;
				height: 99%;
				// box-sizing: border-box;
				position: absolute;
				top: 10rpx;
				left: 90rpx;
				
				.search_input {
					width: 100%;
					height: calc(100% - 200rpx);
					
					.editor_search {
						height: 100% !important;
						border: none;
						padding-left: 7rpx !important;
						background-color: #f7f7f7;
					}
				}
				
				.search_btn {
					width: 60rpx;
					height: 160rpx;
					color: #fff;
					text-align: center;
					border-radius: 10rpx;
					background-color: #1c9aa0;
					position: absolute;
					bottom: 20rpx;
					display: flex;
					align-items: center;
				}
			}
			
			// 饲料管理 、 批量管理
			.si_liao_pi_liang_box {
				width: calc(100% - 90rpx);
				height: 100rpx;
				margin-left: 80rpx;
				display: flex;
				flex-direction: row;
				justify-content: space-around;
				align-items: center;
				
				.si_liao_box, .pi_liang_box {
					width: 50%;
					height: 100%;
					padding: 10rpx;
					box-sizing: border-box;
					position: relative;
					// border: 1px solid #f00;
					
					.si_liao, .pi_liang {
						width: 50%;
						display: flex;
						flex-direction: row;
						justify-content: space-around;
						align-items: center;
						
						position: absolute;
						top: 50%;
						left: 50%;
						transform: translate(-50%, -50%);
					}
					
					.si_liao_icon, .pi_liang_icon {
						
					}
					
					.si_liao_text, .pi_liang_text {
						height: 100rpx;
						text-align: center;
						white-space: normal;
						color: #ccc;
					}
				}
			}
			
			// 牛数量
			.num_box {
				width: calc(100% - 90rpx);
				height: 170rpx;
				// border: 1px solid #f00;
				margin-left: 80rpx;
				
				.num_list {
					width: 100%;
					height: 100%;
					display: flex;
					flex-direction: row;
					justify-content: space-around;
					
					.num_item {
						width: 80rpx;
						height: 100%;
						// border: 1px solid #2366fc;
						position: relative;
						text-align: center;
						
						.num {
							width: 100%;
							text-align: center;
						}
						
						.name {
							width: 100%;
							text-align: center;
							margin-top: 10rpx;
							color: #a7a7a7;
						}
					}
				}
			}
		
			// 筛选 和 养殖列表
			.classify__list_box {
				width: calc(100% - 90rpx);
				margin-left: 80rpx;
				// border: 1px solid #f00;
				background-color: #f7f7f7;
				padding: 10rpx;
				box-sizing: border-box;
				
				.classify_box {
					width: 100%;
					height: 120rpx;
					// border: 1px solid #f00;
					display: flex;
					flex-direction: row;
					justify-content: space-around;
					margin-bottom: 10rpx;
				}
				
				.classify_item {
					width: 80rpx;
					height: 120rpx;
					display: flex;
					flex-direction: row;
					justify-content: space-around;
					align-items: center;
					// border: 1px solid #2366fc;
					background-color: #fff;
					border-radius: 10rpx;
					padding: 10rpx;
					box-sizing: border-box;
				}
			}
		
			.yang_zhi_list {
				width: 100%;
				height: calc(100% - 120rpx);
				// border: 1px solid #080;
				overflow-x: auto;
				overflow-y: hidden;
				white-space: nowrap;
				box-sizing: border-box;
				box-sizing: border-box;
			
				.yang_zhi_item {
					width: 100%;
					height: 260rpx;
					padding: 10rpx;
					// border: 1px solid #f00;
					box-sizing: border-box;
					position: relative;
					background-color: #fff;
					border-radius: 10rpx;
					
					.img_box {
						width: 160rpx;
						height: 160rpx;
						float: left;
						// border: 1px solid #f00;
						
						image { width: 100%; height: 100%; border-radius: 10rpx; }
					}
					
					.yang_zhi_content {
						width: calc(100% - 160rpx);
						height: 160rpx;
						float: left;
						margin-top: 10rpx;
						padding: 10rpx 0;
						box-sizing: border-box;
						
						.flex_item {
							height: 100%;
							text { height: 100%; text-align: center; white-space: normal; }
						}
					}
					
					.num_box { 
						width: 100%; height: 40rpx; position: absolute;  left: 0rpx; bottom: 10rpx; margin-left: 10rpx !important;
						.num {}
						.percent {
							width: 120rpx;
							height: 50rpx;
							// border: 1px solid #f00;
							position: relative;
							
							.dang_an_icon {
								position: absolute;
								top: 0;
								left: 0;
							}
							
							text {
								position: absolute;
								top: 50%;
								right: 0;
								transform: translateY(-50%);
							}
						}
					}
				}
			}
		
			.bottom_box {
				width: calc(100% - 90rpx);
				height: 140rpx;
				// border: 1px solid #f00;
				margin-left: 80rpx;
				display: flex;
				flex-direction: row;
				justify-content: space-between;
				align-items: center;
				z-index: 9999;
				
				.select_all {
					width: 25%;
					height: 100%;
					padding: 10rpx;
					box-sizing: border-box;
					// border: 1px solid #f00;
					
					display: flex;
					flex-direction: row;
					justify-content: space-around;
					align-items: center;
					
					.select_icon {
						
					}
					
					.select_text {
						height: 120rpx;
						text-align: center;
						white-space: normal;
						color: #ccc;
					}
				}
				
				.select_some {
					width: 25%;
					height: 100%;
					padding: 10rpx;
					box-sizing: border-box;
					// border: 1px solid #f00;
					display: flex;
					flex-direction: row;
					justify-content: space-around;
					align-items: center;
					
					.select_num {
						
					}
					
					.select_text {
						height: 120rpx;
						text-align: center;
						white-space: normal;
						color: #ccc;
						position: relative;
						
						text {
							position: absolute;
							top: 50%;
							left: 50%;
							transform: translate(-50%, -50%);
						}
					}
				}
				
				.delete_box {
					width: 25%;
					height: 100%;
					padding: 10rpx;
					box-sizing: border-box;
					
					.btn {
						width: 100%;
						height: 100%;
						background-color: #ccc;
						color: #000;
						border-radius: 10rpx;
						position: relative;
						
						text {
							position: absolute;
							top: 50%;
							left: 50%;
							transform: translate(-50%, -50%);
						}
					}
				}
				
				.btn_box {
					width: 25%;
					height: 100%;
					padding: 10rpx;
					box-sizing: border-box;
					
					.btn {
						width: 100%;
						height: 100%;
						background-color: #1c9aa0;
						color: #fff;
						border-radius: 10rpx;
						position: relative;
						
						text {
							position: absolute;
							top: 50%;
							left: 50%;
							transform: translate(-50%, -50%);
						}
					}
				}
			}	
		}
	
		// 批量养殖 dialog
		.pi_liang_yang_zhi_dialog	{
			width: calc(100% - 160rpx);
			position: absolute;
			top: 0;
			right: 0;
			
			.select_box {
				border-top-left-radius: 20rpx;
				border-top-right-radius: 20rpx;
				position: absolute;
				left: 0;
				bottom: 0;
				
				.hide_btn_box {
					width: 100%;
					height: 80rpx;
					position: relative;
					
					i { position: absolute; top: 20rpx; right: 20rpx; }
				}
				
				.title_select_item_box {
					width: 100%;
					height: calc(100% - 100rpx);
					
					.select_item {
						width: 20%;
						height: 80%;
					}
				}
			}
		}
		
	}
</style>